<html>
 <head>
	 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>	 
	 <script type='text/javascript' src='javascript/Ajax.js'></script>
	 <script type='text/javascript'>
		 function sub(s){
		 var ajax=new Xhr();
		 ajax.getText({data:'cross',url:'http://localhost:8080/DataDemo/login1.jsp'},function(t,r){
		  alert(r);
		 })
	  //	ajax.getText({data:s.form},function(t,r){alert(r);})
		 }
		 
	 </script>
 </head>
 <body>
   <center>
  
   </center>
 
  <table>
   <form method="post" action="login.jsp?m=d">
    
    	    <tr> 
              <td align="right" width="35%">书名</td>
              <td width="65%"> 
                <input type="text" name="bookname" maxlength="40" size="30">
              </td>
            </tr>
            
            <tr> 
              <td align="right" width="35%">作者</td>
              <td width="65%"> 
                <input type="text" name="author" maxlength="25" size="20">
              </td>
            </tr>
            <tr> 
              <td align="right" width="35%">性别</td>
              <td width="65%"> 
                <input type="radio" name="sex" >男</input>
              </td>
            </tr>
            <tr> 
              <td align="right" width="35%">出版社</td>
              <td width="65%"> 
                <input type="text" name="publish" size="40" maxlength="150">
              </td>
            </tr>
    	
    	
    	<tr align=center>
    	<td colspan="2"> <input type='button' value="提交" onclick="sub(this);return false;"></td>
    </tr>
  </form>

  </table>



 </body>

</html>
